/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.teaching.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.thinkgem.jeesite.common.persistence.Page;
import com.thinkgem.jeesite.common.service.CrudService;
import com.thinkgem.jeesite.common.utils.StringUtils;
import com.thinkgem.jeesite.modules.teaching.entity.Answer;
import com.thinkgem.jeesite.modules.teaching.dao.AnswerDao;

/**
 * 管理题库下的每个题目情况Service
 * @author 罗洪州
 * @version 2018-01-28
 */
@Service
@Transactional(readOnly = true)
public class AnswerService extends CrudService<AnswerDao, Answer> {

	
	public Answer get(String id) {
		Answer answer = super.get(id);
		return answer;
	}
	
	public List<Answer> findList(Answer answer) {
		return super.findList(answer);
	}
	
	public Page<Answer> findPage(Page<Answer> page, Answer answer) {
		return super.findPage(page, answer);
	}
	
	@Transactional(readOnly = false)
	public void save(Answer answer) {
		super.save(answer);
	}
	
	@Transactional(readOnly = false)
	public void delete(Answer answer) {
		super.delete(answer);
	}
	
}